package cn.fjsay.java.demo7;

public class Person {
    private String name;
    private int age;
    private String idNumber;
    private String gender;

    public Person(String name, int age, String idNumber, String gender) {
        this.name = name;
        this.age = age;
        this.idNumber = idNumber;
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "Person [name=" + name + ", age=" + age + ", idNumber=" + idNumber + ", gender=" + gender + "]";
    }
}